home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gtk-2.0 / gdk / gdkcursor.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  4.5 KB  |  163 lines

  1. /* GDK - The GIMP Drawing Kit
  2.  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  3.  *
  4.  * This library is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU Lesser General Public
  6.  * License as published by the Free Software Foundation; either
  7.  * version 2 of the License, or (at your option) any later version.
  8.  *
  9.  * This library is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.  * Lesser General Public License for more details.
  13.  *
  14.  * You should have received a copy of the GNU Lesser General Public
  15.  * License along with this library; if not, write to the
  16.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17.  * Boston, MA 02111-1307, USA.
  18.  */
  19.  
  20. /*
  21.  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  22.  * file for a list of people on the GTK+ Team.  See the ChangeLog
  23.  * files for a list of changes.  These files are distributed with
  24.  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  25.  */
  26.  
  27. #ifndef __GDK_CURSOR_H__
  28. #define __GDK_CURSOR_H__
  29.  
  30. #include <gdk/gdktypes.h>
  31. #include <gdk-pixbuf/gdk-pixbuf.h>
  32.  
  33. G_BEGIN_DECLS
  34.  
  35. #define GDK_TYPE_CURSOR (gdk_cursor_get_type ())
  36.  
  37. /* Cursor types.
  38.  */
  39. typedef enum
  40. {
  41.   GDK_X_CURSOR           = 0,
  42.   GDK_ARROW           = 2,
  43.   GDK_BASED_ARROW_DOWN    = 4,
  44.   GDK_BASED_ARROW_UP       = 6,
  45.   GDK_BOAT           = 8,
  46.   GDK_BOGOSITY           = 10,
  47.   GDK_BOTTOM_LEFT_CORNER  = 12,
  48.   GDK_BOTTOM_RIGHT_CORNER = 14,
  49.   GDK_BOTTOM_SIDE       = 16,
  50.   GDK_BOTTOM_TEE       = 18,
  51.   GDK_BOX_SPIRAL       = 20,
  52.   GDK_CENTER_PTR       = 22,
  53.   GDK_CIRCLE           = 24,
  54.   GDK_CLOCK           = 26,
  55.   GDK_COFFEE_MUG       = 28,
  56.   GDK_CROSS           = 30,
  57.   GDK_CROSS_REVERSE       = 32,
  58.   GDK_CROSSHAIR       = 34,
  59.   GDK_DIAMOND_CROSS       = 36,
  60.   GDK_DOT           = 38,
  61.   GDK_DOTBOX           = 40,
  62.   GDK_DOUBLE_ARROW       = 42,
  63.   GDK_DRAFT_LARGE       = 44,
  64.   GDK_DRAFT_SMALL       = 46,
  65.   GDK_DRAPED_BOX       = 48,
  66.   GDK_EXCHANGE           = 50,
  67.   GDK_FLEUR           = 52,
  68.   GDK_GOBBLER           = 54,
  69.   GDK_GUMBY           = 56,
  70.   GDK_HAND1           = 58,
  71.   GDK_HAND2           = 60,
  72.   GDK_HEART           = 62,
  73.   GDK_ICON           = 64,
  74.   GDK_IRON_CROSS       = 66,
  75.   GDK_LEFT_PTR           = 68,
  76.   GDK_LEFT_SIDE       = 70,
  77.   GDK_LEFT_TEE           = 72,
  78.   GDK_LEFTBUTTON       = 74,
  79.   GDK_LL_ANGLE           = 76,
  80.   GDK_LR_ANGLE            = 78,
  81.   GDK_MAN           = 80,
  82.   GDK_MIDDLEBUTTON       = 82,
  83.   GDK_MOUSE           = 84,
  84.   GDK_PENCIL           = 86,
  85.   GDK_PIRATE           = 88,
  86.   GDK_PLUS           = 90,
  87.   GDK_QUESTION_ARROW       = 92,
  88.   GDK_RIGHT_PTR       = 94,
  89.   GDK_RIGHT_SIDE       = 96,
  90.   GDK_RIGHT_TEE       = 98,
  91.   GDK_RIGHTBUTTON       = 100,
  92.   GDK_RTL_LOGO           = 102,
  93.   GDK_SAILBOAT           = 104,
  94.   GDK_SB_DOWN_ARROW       = 106,
  95.   GDK_SB_H_DOUBLE_ARROW   = 108,
  96.   GDK_SB_LEFT_ARROW       = 110,
  97.   GDK_SB_RIGHT_ARROW       = 112,
  98.   GDK_SB_UP_ARROW       = 114,
  99.   GDK_SB_V_DOUBLE_ARROW   = 116,
  100.   GDK_SHUTTLE           = 118,
  101.   GDK_SIZING           = 120,
  102.   GDK_SPIDER          = 122,
  103.   GDK_SPRAYCAN           = 124,
  104.   GDK_STAR           = 126,
  105.   GDK_TARGET           = 128,
  106.   GDK_TCROSS           = 130,
  107.   GDK_TOP_LEFT_ARROW       = 132,
  108.   GDK_TOP_LEFT_CORNER       = 134,
  109.   GDK_TOP_RIGHT_CORNER       = 136,
  110.   GDK_TOP_SIDE           = 138,
  111.   GDK_TOP_TEE           = 140,
  112.   GDK_TREK           = 142,
  113.   GDK_UL_ANGLE           = 144,
  114.   GDK_UMBRELLA           = 146,
  115.   GDK_UR_ANGLE           = 148,
  116.   GDK_WATCH           = 150,
  117.   GDK_XTERM           = 152,
  118.   GDK_LAST_CURSOR,
  119.   GDK_CURSOR_IS_PIXMAP     = -1
  120. } GdkCursorType;
  121.  
  122. struct _GdkCursor
  123. {
  124.   GdkCursorType type;
  125.   /*< private >*/
  126.   guint ref_count;
  127. };
  128.  
  129. /* Cursors
  130.  */
  131.  
  132. GType      gdk_cursor_get_type           (void) G_GNUC_CONST;
  133.  
  134. GdkCursor* gdk_cursor_new_for_display     (GdkDisplay      *display,
  135.                       GdkCursorType    cursor_type);
  136. #ifndef GDK_MULTIHEAD_SAFE
  137. GdkCursor* gdk_cursor_new         (GdkCursorType       cursor_type);
  138. #endif
  139. GdkCursor* gdk_cursor_new_from_pixmap     (GdkPixmap      *source,
  140.                       GdkPixmap      *mask,
  141.                       const GdkColor  *fg,
  142.                       const GdkColor  *bg,
  143.                       gint           x,
  144.                       gint           y);
  145. GdkCursor* gdk_cursor_new_from_pixbuf     (GdkDisplay      *display,
  146.                       GdkPixbuf       *pixbuf,
  147.                       gint             x,
  148.                       gint             y);
  149. GdkDisplay* gdk_cursor_get_display     (GdkCursor      *cursor);
  150. GdkCursor*  gdk_cursor_ref               (GdkCursor       *cursor);
  151. void        gdk_cursor_unref             (GdkCursor       *cursor);
  152. GdkCursor*  gdk_cursor_new_from_name     (GdkDisplay      *display,
  153.                       const gchar     *name);
  154. GdkPixbuf*  gdk_cursor_get_image         (GdkCursor       *cursor);
  155.  
  156. #ifndef GDK_DISABLE_DEPRECATED
  157. #define gdk_cursor_destroy             gdk_cursor_unref
  158. #endif /* GDK_DISABLE_DEPRECATED */
  159.  
  160. G_END_DECLS
  161.  
  162. #endif /* __GDK_CURSOR_H__ */
  163.